// Copyright (c) 2010 Manuel Peinado Gallego <manuel.peinado@gmail.com>
// Distributed under the MIT license

#include "stdafx.h"
#include "WorldBuilder.h"
#include "Selectable.h"

std::wstring Selectable::getName() const
{
    return m_name; 
}

void Selectable::setName(const std::wstring& name)
{ 
    m_name = name; 
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Serialization


void Selectable::read(std::wistream& is)
{
    is >> m_name;
}

void Selectable::write(std::wostream& os) const
{
    os << m_name << "\n";
}


